package com.algebra.util.sensitive;

import java.util.Map;
import java.util.function.Function;

/**
 * @author al
 * @date 2022/5/25 11:41
 * @description
 */
public class SensitiveStrategy implements ISensitiveStrategy {
    private static Map<String, Function<String, String>> STRATEGY_FUNCTION_MAP;

    public SensitiveStrategy() {
        STRATEGY_FUNCTION_MAP = new SensitiveStrategyMap();
    }

    @Override
    public Map<String, Function<String, String>> getStrategyFunctionMap() {
        return STRATEGY_FUNCTION_MAP;
    }

    public SensitiveStrategy addStrategy(String var1, Function<String, String> var2) {
        STRATEGY_FUNCTION_MAP.put(var1, var2);
        return this;
    }
}
